﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="UserParams.aspx.cs" Inherits="GreatB2C.Web.Manage.SystemSet.SiteInfo.UserParams" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户参数配置</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/jquery-1.4.2.min.js"></script>

    <script src="../../../Resource/Script/jquery.validate.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../../Component/tiny_mce/tiny_mce.js"></script>

    <script type="text/javascript">
        $().ready(function() {

            tinyMCE.init({
                // General options
                mode: "textareas",
                theme: "advanced",
                skin: "default",
                plugins: "autolink,lists,pagebreak,style,layer,table,,advimage,advlink,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable",

                // Theme options
                theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,formatselect,fontselect,fontsizeselect,|,bullist,numlist,|,forecolor,backcolor,|,fullscreen",
                theme_advanced_buttons2: "",
                theme_advanced_buttons3: "",
                theme_advanced_buttons4: "",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                theme_advanced_statusbar_location: "bottom",

                theme_advanced_resizing: false,

                // Example word content CSS (should be your site CSS) this one removes paragraph margins
                content_css: "css/word.css",

                language: "zh",

                // Replace values for the template plugin
                template_replace_values: {
                    username: "betterlife",
                    staffid: "123456"
                }
            });

            // validate signup form on keyup and submit
            $("#form1").validate({
                rules: {
                    txtUserNameLimit: {
                        required: true
                    },
                    txtUserNameMax: {
                        required: true
                    },
                    txtPresentExp: {
                        required: true
                    },
                    txtPresentMoney: {
                        required: true
                    },
                    txtPresentPoint: {
                        required: true
                    },
                    txtPresentValidNum: {
                        required: true
                    },
                    txtPresentExpPerLogin: {
                        required: true
                    },
                    txtAddPointPerLogin: {
                        required: true
                    },
                    txtMoneyExchangePoint: {
                        required: true
                    },
                    txtCMoneyExchangePoint: {
                        required: true
                    },
                    txtMoneyExchangeValidDay: {
                        required: true
                    },
                    txtCMoneyExchangeValidDay: {
                        required: true
                    },
                    txtUserExpExchangePoint: {
                        required: true
                    },
                    txtCUserExpExchangePoint: {
                        required: true
                    },
                    txtUserExpExchangeValidDay: {
                        required: true
                    },
                    txtCUserExpExchangeValidDay: {
                        required: true
                    }
                },
                messages: {
                    txtUserNameLimit: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时用户名最少字符数</font>"
                    },
                    txtUserNameMax: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时用户名最多字符数</font>"
                    },
                    txtPresentExp: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时赠送的积分</font>"
                    },
                    txtPresentMoney: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时赠送的金钱</font>"
                    },
                    txtPresentPoint: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时赠送的积分</font>"
                    },
                    txtPresentValidNum: {
                        required: "<font class='validatemsg'>* 请输入新会员注册时赠送的有效期</font>"
                    },
                    txtPresentExpPerLogin: {
                        required: "<font class='validatemsg'>* 请输入会员每登录一次奖励的积分</font>"
                    },
                    txtAddPointPerLogin: {
                        required: "<font class='validatemsg'>* 请输入会员每登录一次奖励的积分</font>"
                    },
                    txtMoneyExchangePoint: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtCMoneyExchangePoint: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtMoneyExchangeValidDay: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtCMoneyExchangeValidDay: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtUserExpExchangePoint: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtCUserExpExchangePoint: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtUserExpExchangeValidDay: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    },
                    txtCUserExpExchangeValidDay: {
                        required: "<font class='validatemsg'>* 请输入数字</font>"
                    }
                }
            });

        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td class="spacingtitle" colspan="2">
                <strong>用户参数配置</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft" style="width: 30%;">
                <strong>是否开启会员注册功能：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableUserReg" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员注册服务条款和声明：</strong><br />
                会员注册服务条款和声明内容中可用标签说明如下：<br />
                <span>{$SiteName}</span>：网站信息配置中的网站名称<br />
            </td>
            <td>
                <textarea id="txtProtocol" name="txtProtocol" rows="5" cols="80" style="width: 400px"
                    runat="server">
	            </textarea>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否允许一个Email注册多个会员：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableMultiRegPerEmail" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时用户名最少字符数：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtUserNameLimit" Text="4" runat="server" MaxLength="3" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />&nbsp;个字符
                <asp:CompareValidator ID="CValtxtUserNameLimit" runat="server" ControlToValidate="txtUserNameLimit"
                    ValueToCompare="1" Type="Integer" Operator="GreaterThanEqual" ErrorMessage="最少字符数必须大于等于1"
                    Display="Dynamic" SetFocusOnError="true" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时用户名最多字符数：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtUserNameMax" Text="20" runat="server" MaxLength="3" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />&nbsp;个字符
                <asp:CompareValidator ID="CValtxtUserNameMax" runat="server" ControlToValidate="txtUserNameMax"
                    ControlToCompare="txtUserNameLimit" Type="Integer" Operator="GreaterThanEqual"
                    ErrorMessage="最多字符数必须大于等于最小字符数" Display="Dynamic" SetFocusOnError="true" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>禁止注册的用户名：</strong><br />
                在右边指定的用户名将被禁止注册，每个用户名请用“|”符号分隔
            </td>
            <td>
                <asp:TextBox ID="txtUserName_RegDisabled" Text="" Height="40" TextMode="MultiLine"
                    runat="server" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员注册时的必填、选填项目：</strong><br />
                在会员注册时，可根据需要设定注册的必填项、选填项。<br />
                将“可用项”中内容添加到“必填项”或者“选填项”的列表中即可设定。<br />
                用户名、 密码、 确认密码、 密码问题、 问题答案、 Email为系统强制必填信息。<br />
                <span style="color: Blue">注：若修改此项，前台正在注册的表单页面将失效</span>
            </td>
            <td style="width: 60%">
                <table>
                    <tr>
                        <td>
                            <asp:HiddenField ID="HdnRegFields_MustFill" runat="server" />
                            <asp:HiddenField ID="HdnRegFields_SelectFill" runat="server" />
                            可用项：<br />
                            <asp:ListBox ID="LitRegFields" SelectionMode="Multiple" Width="130" Height="285"
                                runat="server">
                                <asp:ListItem Value="ICQ" Text="ICQ号码"></asp:ListItem>
                                <asp:ListItem Value="UC" Text="UC号码"></asp:ListItem>
                                <asp:ListItem Value="Mobile" Text="手机号码"></asp:ListItem>
                                <asp:ListItem Value="Fax" Text="传真号码"></asp:ListItem>
                                <asp:ListItem Value="PHS" Text="小灵通"></asp:ListItem>
                                <asp:ListItem Value="Region" Text="国家/地区"></asp:ListItem>
                                <asp:ListItem Value="Address" Text="联系地址"></asp:ListItem>
                                <asp:ListItem Value="ZipCode" Text="邮政编码"></asp:ListItem>
                                <asp:ListItem Value="Yahoo" Text="雅虎通帐号"></asp:ListItem>
                                <asp:ListItem Value="Aim" Text="Aim帐号"></asp:ListItem>
                                <asp:ListItem Value="TrueName" Text="真实姓名"></asp:ListItem>
                                <asp:ListItem Value="Birthday" Text="出生日期"></asp:ListItem>
                                <asp:ListItem Value="IDCard" Text="身份证号码"></asp:ListItem>
                                <asp:ListItem Value="Department" Text="部门"></asp:ListItem>
                                <asp:ListItem Value="Company" Text="公司/单位"></asp:ListItem>
                                <asp:ListItem Value="PosTitle" Text="职务"></asp:ListItem>
                                <asp:ListItem Value="Marriage" Text="婚姻状况"></asp:ListItem>
                                <asp:ListItem Value="Sex" Text="性别"></asp:ListItem>
                                <asp:ListItem Value="Income" Text="收入情况"></asp:ListItem>
                                <asp:ListItem Value="UserFace" Text="用户头像"></asp:ListItem>
                                <asp:ListItem Value="FaceWidth" Text="头像宽度"></asp:ListItem>
                                <asp:ListItem Value="FaceHeight" Text="头像高度"></asp:ListItem>
                                <asp:ListItem Value="Sign" Text="签名档"></asp:ListItem>
                                <asp:ListItem Value="Privacy" Text="隐私设定"></asp:ListItem>
                                <asp:ListItem Value="QQ" Text="QQ号码"></asp:ListItem>
	                            <asp:ListItem Value="MSN" Text="MSN帐号"></asp:ListItem>
	                            <asp:ListItem Value="Homepage" Text="主页"></asp:ListItem>
	                            <asp:ListItem Value="OfficePhone" Text="办公电话"></asp:ListItem>
	                            <asp:ListItem Value="HomePhone" Text="家庭电话"></asp:ListItem>
                            </asp:ListBox>
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <input id="Button4" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" >> " onclick="AddFields_MustFill()"
                                            title="添加所选项" type="button" style="width: 40px; margin-bottom: 5px;" /><br />
                                        <input id="Button2" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" << " onclick="RemoveFields_MustFill()"
                                            title="移除所选项" type="button" style="width: 40px;" />
                                    </td>
                                    <td>
                                        必填项：<br />
                                        <asp:ListBox ID="LitRegFields_MustFill" SelectionMode="Multiple" Width="130" Height="130"
                                            runat="server" />
                                    </td>
                                    <td>
                                        <input id="Button5" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" ︽ " onclick="UpFields_MustFill()"
                                            title="上移" type="button" style="width: 40px; margin-bottom: 5px" /><br />
                                        <input id="Button6" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" ︾ " onclick="DownFields_MustFill()"
                                            title="下移" type="button" style="width: 40px;" />
                                        <br />
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input id="Button1" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" >> " onclick="AddFields_SelectFill()"
                                            title="添加所选项" type="button" style="width: 40px; margin-bottom: 5px" /><br />
                                        <input id="Button3" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" << " onclick="RemoveFields_SelectFill()"
                                            title="移除所选项" type="button" style="width: 40px;" />
                                    </td>
                                    <td>
                                        选填项：<br />
                                        <asp:ListBox ID="LitRegFields_SelectFill" SelectionMode="Multiple" Width="130" Height="130"
                                            runat="server" />
                                    </td>
                                    <td>
                                        <input id="Button7" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" ︽ " onclick="UpFields_SelectFill()"
                                            title="上移" type="button" style="width: 40px; margin-bottom: 5px" /><br />
                                        <input id="Button8" class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'"
                                            onmouseout="this.className='btnstyle_blue'" value=" ︾ " onclick="DownFields_SelectFill()"
                                            title="下移" type="button" style="width: 40px;" />
                                        <br />
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>是否启用注册企业功能：</strong><br />
                若选择“是”，则会员注册后会同时提示注册一个企业。
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableRegCompany" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员注册时是否启用验证码功能：</strong><br />
                启用验证码功能可以在一定程度上防止暴力营销软件或注册机自动注册。
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableCheckCodeOfReg" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员注册时是否启用回答问题验证功能：</strong><br />
                启用此功能，可以最大程度上防止暴力营销软件或注册机自动注册，也可以用于某些特殊场合，防止无关人员注册会员。
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableQAofReg" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>问题一：</strong><br />
                如果启用验证功能，则问题一和答案必须填写。
            </td>
            <td>
                问题：<asp:TextBox ID="txtRegQuestion1" Text="问题一" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" /><br />
                答案：<asp:TextBox ID="txtRegAnswer1" Text="答案一" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>问题二：</strong><br />
                如果启用验证功能，则问题二和答案必须填写。
            </td>
            <td>
                问题：<asp:TextBox ID="txtRegQuestion2" Text="问题二" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" /><br />
                答案：<asp:TextBox ID="txtRegAnswer2" Text="答案二" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>问题三：</strong><br />
                如果启用验证功能，则问题三和答案必须填写。
            </td>
            <td>
                问题：<asp:TextBox ID="txtRegQuestion3" Text="问题三" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" /><br />
                答案：<asp:TextBox ID="txtRegAnswer3" Text="答案三" runat="server" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册是否需要管理员认证：</strong><br />
                若选择“是”，则会员必须在通过管理员认证后才能真正成为正式注册会员。
            </td>
            <td>
                <asp:RadioButtonList ID="radlAdminCheckReg" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册是否需要邮件验证： </strong>
                <br />
                若选择“是”，则会员注册后系统会发一封带有验证码的邮件给此会员，会员必须在通过邮件验证后才能真正成为正式注册会员。
            </td>
            <td>
                <asp:RadioButtonList ID="radlEmailCheckReg" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时发送的验证邮件内容：</strong><br />
                邮件内容支持HTML，邮件内容中可用标签说明如下：<br />
                <span style="cursor: pointer;" onclick="Insert('{$CheckNum}')">{$CheckNum}</span>：验证码<br />
                <span style="cursor: pointer;" onclick="Insert('{$CheckUrl}')">{$CheckUrl}</span>：验证地址
            </td>
            <td>
                <asp:TextBox ID="txtEmailOfRegCheck" TextMode="MultiLine" runat="server" Height="80px"
                    CssClass="inputtext" Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册成功后所属会员组：</strong>
            </td>
            <td>
                <asp:DropDownList ID="ddlUserGroup" DataTextField="GroupName" DataValueField="GroupId"
                    runat="server" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时赠送的积分：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtPresentExp" Text="0" runat="server" MaxLength="7" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                分积分
                <asp:RegularExpressionValidator ID="ValgPresentExp" runat="server" ControlToValidate="txtPresentExp"
                    ErrorMessage="只能输入正整数" ValidationExpression="^([0-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时赠送的金钱：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtPresentMoney" Text="0" runat="server" MaxLength="7" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                元钱
                <asp:RegularExpressionValidator ID="ValgtxtPresentMoney" runat="server" ControlToValidate="txtPresentMoney"
                    ErrorMessage="只能输入货币字符，并且不能为负数" ValidationExpression="^[0-9]+(\.?[0-9]{1,4})?"
                    Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>新会员注册时赠送的积分：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtPresentPoint" Text="0" runat="server" MaxLength="7" CssClass="inputtext"
                    Width="400px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                积分
                <asp:RegularExpressionValidator ID="ValgPresentPoint" runat="server" ControlToValidate="txtPresentPoint"
                    ErrorMessage="只能输入正整数" ValidationExpression="^([0-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg" runat="server" id="PresentValidNum">
            <td class="tdbgleft">
                <strong>新会员注册时赠送的有效期：</strong>
            </td>
            <td>
                <asp:TextBox ID="txtPresentValidNum" Text="0" runat="server" /><asp:DropDownList
                    ID="DropPresentValidUnit" runat="server">
                    <asp:ListItem Value="1">天</asp:ListItem>
                    <asp:ListItem Value="2">月</asp:ListItem>
                    <asp:ListItem Value="3">年</asp:ListItem>
                </asp:DropDownList>
                （为－1表示无限期）
                <asp:RegularExpressionValidator ID="ValgPresentValidNum" runat="server" ControlToValidate="txtPresentValidNum"
                    ErrorMessage="只能输入正整数" ValidationExpression="^([0-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员找回密码的方式：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlGetPasswordType" runat="server">
                    <asp:ListItem Value="0">回答正确密码答案后，直接在页面修改密码</asp:ListItem>
                    <asp:ListItem Value="1">回答正确密码答案后，发送邮件到会员邮箱（必须在网站信息配置配置邮件服务器与会员注册时填写了邮件地址！）</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员登录时是否启用验证码功能：</strong><br />
                启用验证码功能可以在一定程度上防止会员密码被暴力破解
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableCheckCodeOfLogin" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员登录时是否允许多人同时使用同一会员帐号：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="radlEnableMultiLogin" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0">否</asp:ListItem>
                    <asp:ListItem Value="1">是</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员每登录一次奖励的积分：</strong><br />
                一天只计算一次
            </td>
            <td>
                <asp:TextBox ID="txtPresentExpPerLogin" Text="0" runat="server" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                分积分
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPresentExpPerLogin"
                    ErrorMessage="只能输入正整数" ValidationExpression="^([0-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员每登录一次奖励的积分：</strong><br />
                一天只计算一次
            </td>
            <td>
                <asp:TextBox ID="txtAddPointPerLogin" Text="0" runat="server" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                分积分
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtAddPointPerLogin"
                    ErrorMessage="只能输入正整数" ValidationExpression="^([0-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员的资金与<%=getPointName() %>的兑换比率：</strong>
            </td>
            <td>
                每
                <asp:TextBox ID="txtMoneyExchangePoint" Text="0" runat="server" MaxLength="7" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                元钱可兑换 <strong>
                    <asp:TextBox ID="txtCMoneyExchangePoint" Text="1" runat="server" MaxLength="7" CssClass="inputtext"
                        Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" /></strong>
                <%=getPointUnit( )%><%=getPointName() %>
                <asp:RegularExpressionValidator ID="ValeMoneyExchangePoint" runat="server" ControlToValidate="txtMoneyExchangePoint"
                    ErrorMessage="只能输入货币字符，并且不能为零和负数" ValidationExpression="^[0-9]+(\.?[0-9]{1,4})?"
                    Display="Dynamic" />
                <asp:RegularExpressionValidator ID="ValeCMoneyExchangePoint" runat="server" ControlToValidate="txtCMoneyExchangePoint"
                    ErrorMessage="只能输入大于零的正整数" ValidationExpression="^[1-9]+(\.?[0-9]{1,4})?" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员的资金与有效期的兑换比率：</strong>
            </td>
            <td>
                每
                <asp:TextBox ID="txtMoneyExchangeValidDay" Text="0" runat="server" MaxLength="7"
                    CssClass="inputtext" Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';" />
                元钱可兑换 <strong>
                    <asp:TextBox ID="txtCMoneyExchangeValidDay" Text="1" runat="server" MaxLength="7"
                        CssClass="inputtext" Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" /></strong> 天有效期
                <asp:RegularExpressionValidator ID="ValeMoneyExchangeValidDay" runat="server" ControlToValidate="txtMoneyExchangeValidDay"
                    ErrorMessage="只能输入货币字符，并且不能为负数" ValidationExpression="^[0-9]+(\.?[0-9]{1,4})?"
                    Display="Dynamic" />
                <asp:RegularExpressionValidator ID="ValeCMoneyExchangeValidDay" runat="server" ControlToValidate="txtCMoneyExchangeValidDay"
                    ErrorMessage="只能输入大于零的正整数" ValidationExpression="^[1-9]+(\.?[0-9]{1,4})?" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员的积分与<%=getPointName() %>的兑换比率：</strong>
            </td>
            <td>
                每
                <asp:TextBox ID="txtUserExpExchangePoint" Text="0" runat="server" MaxLength="7" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
                分积分可兑换 <strong>
                    <asp:TextBox ID="txtCUserExpExchangePoint" Text="1" runat="server" MaxLength="7"
                        CssClass="inputtext" Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" /></strong> <%=getPointUnit( )%><%=getPointName() %>
                <asp:RegularExpressionValidator ID="ValgUserExpExchangePoint" runat="server" ControlToValidate="txtUserExpExchangePoint"
                    ErrorMessage="只能输入大于零的正整数" ValidationExpression="^([1-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
                <asp:RegularExpressionValidator ID="ValgCUserExpExchangePoint" runat="server" ControlToValidate="txtCUserExpExchangePoint"
                    ErrorMessage="只能输入大于零的正整数" ValidationExpression="^([1-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>会员的积分与有效期的兑换比率：</strong>
            </td>
            <td>
                每
                <asp:TextBox ID="txtUserExpExchangeValidDay" Text="0" runat="server" MaxLength="7"
                    CssClass="inputtext" Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';"
                    onblur="this.style.backgroundColor='';" />
                分积分可兑换 <strong>
                    <asp:TextBox ID="txtCUserExpExchangeValidDay" Text="1" runat="server" MaxLength="7"
                        CssClass="inputtext" Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';"
                        onblur="this.style.backgroundColor='';" /></strong> 天有效期
                <asp:RegularExpressionValidator ID="ValgUserExpExchangeValidDay" runat="server" ControlToValidate="txtUserExpExchangeValidDay"
                    ErrorMessage="只能输入大于零的正整数" ValidationExpression="^([1-9])(\d{0,})(\d{0,})$" Display="Dynamic" />
                <asp:RegularExpressionValidator ID="ValgCUserExpExchangeValidDay" runat="server"
                    ControlToValidate="txtCUserExpExchangeValidDay" ErrorMessage="只能输入大于零的正整数" ValidationExpression="^([1-9])(\d{0,})(\d{0,})$"
                    Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong><%=getPointName() %>的名称：</strong><br />
                例如：点券、金币
            </td>
            <td style="height: 36px">
                <asp:TextBox ID="txtPointName" Text="点券" runat="server" MaxLength="5" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong><%=getPointName() %>的单位：</strong><br />
                例如：点、个
            </td>
            <td>
                <asp:TextBox ID="txtPointUnit" Text="点" runat="server" MaxLength="5" CssClass="inputtext"
                    Width="80px" onfocus="this.style.backgroundColor='#d2e0f0';" onblur="this.style.backgroundColor='';" />
            </td>
        </tr>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="BtnSubmit" runat="server" Text="保存设置[S]" Style="width: 90px;" AccessKey="S"
                    class="btnstyle_blue" onmouseover="this.className='btnstyle_blue_over'" onmouseout="this.className='btnstyle_blue'"
                    OnClick="BtnSubmit_Click" />&nbsp;&nbsp;
                <input type="reset" name="ClearSiteInfo" value="重 填[R]" class="btnstyle_blue" id="btnSiteInfoReset"
                    accesskey="R" style="width: 70px;" runat="server" onmouseover="this.className='btnstyle_blue_over'"
                    onmouseout="this.className='btnstyle_blue'" />
            </td>
        </tr>
    </table>
    </form>
</body>

<script type="text/javascript">

    var LitRegFieldsClientID = "LitRegFields";
    var HdnRegFields_MustFillClientID = "HdnRegFields_MustFill";
    var LitRegFields_MustFillClientID = "LitRegFields_MustFill";
    var HdnRegFields_SelectFillClientID = "HdnRegFields_SelectFill";
    var LitRegFields_SelectFillClientID = "LitRegFields_SelectFill";

    function AddFields_MustFill() {
        var itemList = document.getElementById(LitRegFieldsClientID);
        var target = document.getElementById(LitRegFields_MustFillClientID);
        addItem(itemList, target);
        SetHdn(target, document.getElementById(HdnRegFields_MustFillClientID));
    }

    function RemoveFields_MustFill() {
        var itemList = document.getElementById(LitRegFieldsClientID);
        var target = document.getElementById(LitRegFields_MustFillClientID);
        addItem(target, itemList);
        SetHdn(target, document.getElementById(HdnRegFields_MustFillClientID));
    }

    function AddFields_SelectFill() {
        var itemList = document.getElementById(LitRegFieldsClientID);
        var target = document.getElementById(LitRegFields_SelectFillClientID);
        addItem(itemList, target);
        SetHdn(target, document.getElementById(HdnRegFields_SelectFillClientID));
    }

    function RemoveFields_SelectFill() {
        var itemList = document.getElementById(LitRegFieldsClientID);
        var target = document.getElementById(LitRegFields_SelectFillClientID);
        addItem(target, itemList);
        SetHdn(target, document.getElementById(HdnRegFields_SelectFillClientID));
    }

    function UpFields_MustFill() {
        var target = document.getElementById(LitRegFields_MustFillClientID);
        UpOption(target);
        SetHdn(target, document.getElementById(HdnRegFields_MustFillClientID));
    }

    function DownFields_MustFill() {
        var target = document.getElementById(LitRegFields_MustFillClientID);
        DownOption(target);
        SetHdn(target, document.getElementById(HdnRegFields_MustFillClientID));
    }

    function UpFields_SelectFill() {
        var target = document.getElementById(LitRegFields_SelectFillClientID);
        UpOption(target);
        SetHdn(target, document.getElementById(HdnRegFields_SelectFillClientID));
    }

    function DownFields_SelectFill() {
        var target = document.getElementById(LitRegFields_SelectFillClientID);
        DownOption(target);
        SetHdn(target, document.getElementById(HdnRegFields_SelectFillClientID));
    }

    function UpOption(obj) {
        for (var i = 0; i < obj.length; i++) {
            var opt = obj.options[i];
            if (opt.selected) {
                if (i >= 1) {
                    var temp = obj.options[i - 1];
                    obj.options[i] = new Option(temp.text, temp.value, 0, 0);
                    obj.options[i - 1] = new Option(opt.text, opt.value, 0, 1);
                }
            }
        }
    }

    function DownOption(obj) {
        for (var i = obj.length - 1; i >= 0; i--) {
            var opt = obj.options[i];
            if (opt.selected) {
                if (i <= obj.length - 2) {
                    var temp = obj.options[i + 1];
                    obj.options[i] = new Option(temp.text, temp.value, 0, 0);
                    obj.options[i + 1] = new Option(opt.text, opt.value, 0, 1);
                }
            }
        }
    }

    function addItem(ItemList, Target) {
        for (var i = 0; i < ItemList.length; i++) {
            var opt = ItemList.options[i];
            if (opt.selected) {
                flag = true;
                for (var y = 0; y < Target.length; y++) {
                    var myopt = Target.options[y];
                    if (myopt.value == opt.value) {
                        flag = false;
                    }
                }
                if (flag) {
                    Target.options[Target.options.length] = new Option(opt.text, opt.value, 0, 0);
                }
            }
        }

        for (var y = 0; y < Target.length; y++) {
            var myopt = Target.options[y];
            for (var i = 0; i < ItemList.length; i++) {
                if (ItemList.options[i].value == myopt.value) {
                    ItemList.options[i] = null;
                }
            }
        }
    }

    function SetHdn(ItemList, HdnObj) {
        var adminId = "";
        for (var i = 0; i < ItemList.length; i++) {
            if (adminId == "") {
                adminId = ItemList.options[i].value;
            }
            else {
                adminId += "," + ItemList.options[i].value;
            }
        }
        HdnObj.value = adminId;
    }

    //-->

</script>

</html>
